View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000822 | T99X171.00 SKB Eagle | SW Issue | public | 2020-02-27 11:03 | 2020-09-28 12:15 |
| Reporter | Assigned To | (SW) Kerwin Chen | Due Date | ||
| Priority | normal | Severity | s2-severe | Reproducibility | have not tried |
| Status | closed | Resolution | not a bug | ||
| Summary | 0000822: [common] how can we can calculate a booting time until AV? | ||||
| Description | Hi kerwin We receive some question from SKB QA team. They want to know a booting time in console. so they want to compare between a value in console and a stopwatch.' for checking, if you need some thing , please let me know it. I will ask it to TVs or Digicap UI. This requirement is for later application Thanks | ||||
| Tags | No tags attached. | ||||
| Attach Tags | |||||
|
|
Hi Jason, Android has built-in bootchart to understand all processes when booting up. But I am not sure if this is what SKB QA need. Note: this method requires a Linux PC to run bash script. =================================== adb shell 'touch /data/bootchart/enabled' adb reboot ./grab-bootchart.sh grab-bootchart.sh (623 bytes)
#!/bin/sh
#
# This script is used to retrieve a bootchart log generated by init.
# All options are passed to adb, for better or for worse.
# See the readme in this directory for more on bootcharting.
TMPDIR=/tmp/android-bootchart
rm -rf $TMPDIR
mkdir -p $TMPDIR
LOGROOT=/data/bootchart
TARBALL=bootchart.tgz
FILES="header proc_stat.log proc_ps.log proc_diskstats.log"
for f in $FILES; do
adb "${@}" pull $LOGROOT/$f $TMPDIR/$f 2>&1 > /dev/null
done
(cd $TMPDIR && tar -czf $TARBALL $FILES)
bootchart ${TMPDIR}/${TARBALL}
gnome-open ${TARBALL%.tgz}.png
echo "Clean up ${TMPDIR}/ and ./${TARBALL%.tgz}.png when done"
|
|
|
I upload a result of bootchart on my eagle board |
|
|
hi kerwin this time is until see AV first time ? it also be include a booting time for boot loader. after execut grab-bootchat.sh, where can we find bootchart.jpg? a result via stopwatch is about 60s . this value seem it different a time in bootchart.jpg. Thanks |
|
|
Hi Jason, It is only for system booting time, not including AV or UI. bootchart.png is located on your local directory. There is additional executable binaries to run the script. 1. You need to put 'bootchart' in /usr/bin/ folder. 2. Install python tool by command below sudo apt-get install pybootchartgui bootchart (804 bytes)
#!/usr/bin/python # # This file is part of pybootchartgui. # pybootchartgui is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # pybootchartgui is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with pybootchartgui. If not, see <http://www.gnu.org/licenses/>. import sys from pybootchartgui.main import main if __name__ == '__main__': sys.exit(main()) |
|
|
Hi kerwin so if we measure a booting time include AV and UI in a console not GUI type, is there a method ? if you need to help from TVS or Digicap, I will ask it to them. Thanks |
|
|
Hi Jason, Application can get system time directly to measure time after video frame is presented. (Ex: https://developer.android.com/reference/android/util/TimingLogger) I think you should ask help from Digicap or TVS. Thanks ! |
|
|
hi kerwin I talked to SKB QA guy. if they request to us again, I will reopen if need. this ticket is closed at this moment. Thanks. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2020-02-27 11:03 |
|
New Issue | |
| 2020-02-27 11:04 |
|
Assigned To | => (SW) Kerwin Chen |
| 2020-02-27 11:04 |
|
Status | new => assigned |
| 2020-02-27 11:45 | (SW) Kerwin Chen | File Added: grab-bootchart.sh | |
| 2020-02-27 11:45 | (SW) Kerwin Chen | Note Added: 0003406 | |
| 2020-02-27 11:46 | (SW) Kerwin Chen | File Added: bootchart.png | |
| 2020-02-27 11:46 | (SW) Kerwin Chen | Note Added: 0003407 | |
| 2020-02-27 12:07 |
|
Note Added: 0003408 | |
| 2020-02-27 12:19 |
|
Note Edited: 0003408 | |
| 2020-02-27 12:31 |
|
Note Edited: 0003408 | |
| 2020-02-27 12:33 |
|
Note Edited: 0003408 | |
| 2020-02-27 13:13 | (SW) Kerwin Chen | File Added: bootchart | |
| 2020-02-27 13:13 | (SW) Kerwin Chen | Note Added: 0003409 | |
| 2020-02-27 14:50 |
|
Note Added: 0003411 | |
| 2020-02-27 15:27 | (SW) Kerwin Chen | Note Added: 0003412 | |
| 2020-03-02 16:12 |
|
Note Added: 0003423 | |
| 2020-03-02 16:12 |
|
Status | assigned => resolved |
| 2020-03-02 16:12 |
|
Resolution | open => not a bug |
| 2020-09-28 12:15 |
|
Status | resolved => closed |